home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / WebsiteX5 / wsx5_free.exe / {app} / Res / imcaptcha.php < prev    next >
PHP Script  |  2011-01-21  |  391b  |  16 lines

  1. <?php
  2.   include("imkeys.php");
  3.   include("../res/x5engine.php");
  4.   
  5.   //Header("Content-Type: text/html; charset=UTF-8");
  6.  
  7.     $cpt = new imCaptcha();
  8.   //Check Captcha
  9.   if ($_GET["action"] == "check")
  10.         echo $cpt->check($_GET["code"], $_GET["ans"]);
  11.         
  12.   //Show Captcha chars
  13.   else if ($_GET["action"] == "show")
  14.         echo $cpt->show($_GET['code']);
  15.  
  16. // End of file imcaptcha.php